﻿<%@ Page Language="C#" Title="类别信息" AutoEventWireup="true" MasterPageFile="~/Master/MasterPage_New.master"
    CodeBehind="CompanyCurrentGoodsListSC.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.ReportCompany.CurrentGoodsListSC" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="~/Common/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc2" %>
<%@ Register src="../../Common/SortControls.ascx" tagname="SortControls" tagprefix="uc3" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td align="right">
                    类别：
                </td>
                <td align="left">
                     <uc3:SortControls ID="SortControls1" runat="server" />
                </td>
                <td width="100px">
                    <asp:Button ID="btnQuery" runat="server" Text="查询" CssClass="searchbtn" SkinID="search"
                        ToolTip="点击查询符合条件的数据" OnClick="btnQuery_Click" />
                </td>
                 <td>
                    排序字段：
                </td>
                <td align="right">
                    按<asp:DropDownList ID="droSort" runat="server" Height="20px" Width="100px">
                        <asp:ListItem Value="-1">默认</asp:ListItem>
                        <asp:ListItem Value="0">基本药品</asp:ListItem>
                        <asp:ListItem Value="1">非基本药品</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td align="left">
                    的<asp:DropDownList ID="droSortField" runat="server" Height="20px" Width="146px">
                         <asp:ListItem Value="PuchaseCount asc">生产企业供货采购数量 升序</asp:ListItem>
                        <asp:ListItem Value="DistributeCount asc">生产企业供货配送总数量 升序</asp:ListItem>
                        
                         <asp:ListItem Value="PuchaseCount desc">生产企业供货采购数量 降序</asp:ListItem>
                        <asp:ListItem Value="DistributeCount desc">生产企业供货配送总数量 降序</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Button ID="BtnOK" runat="server" Text="排序" Width="77px" CssClass="btn" OnClick="BtnOK_Click" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwSortInfo" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无有效的信息！" OnRowCreated="gvwSortInfo_RowCreated" OnRowDataBound="gvwSortInfo_RowDataBound"
        OnRowCommand="gvwSortInfo_RowCommand">
        <Columns>
            <asp:BoundField HeaderText="药品类别" DataField="SortName" />
            <asp:TemplateField HeaderText="采购类型">
                <ItemTemplate>
                    <%#HZ.Supervise.Web.Function.FormatDrugSource(Eval("Source"))%>
                </ItemTemplate>
                <HeaderStyle Width="60px" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="生产企业供货采购数量" DataField="PuchaseCount" />
            <asp:BoundField HeaderText="生产企业供货配送总数量" DataField="DistributeCount" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <asp:LinkButton ID="linkCompanyGoodsList_SC" runat="server" CommandName="CompanyGoodsList_SC"
                        CommandArgument='<%#Eval("SortName") %>' Text="详情"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</asp:Content>
